package com.flame.auth.core.event;

import org.springframework.context.ApplicationEvent;

public class LoginEvent extends ApplicationEvent {

    private String userId;

    private String loginStatus;

    private String ip;

    private String userAgent;

    public LoginEvent(String loginStatus, String userId, String ip, String userAgent) {
        super(loginStatus);
        this.loginStatus = loginStatus;
        this.userId = userId;
        this.ip = ip;
        this.userAgent = userAgent;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getLoginStatus() {
        return loginStatus;
    }

    public void setLoginStatus(String loginStatus) {
        this.loginStatus = loginStatus;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getUserAgent() {
        return userAgent;
    }

    public void setUserAgent(String userAgent) {
        this.userAgent = userAgent;
    }
}
